<template>
    <div class="b-title">{{ title }} <slot name="right"></slot>
    </div>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            default: ''
        }
    }
}
</script>

<style lang="scss" scoped>
.b-title {
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 0 20px;
    display: flex;
    align-items: center;

    &::before {
        content: "";
        width: 4px;
        height: 16px;
        background: #3A7DFF;
        border-radius: 2px;
        margin-right: 8px;
    }
}
</style>